Scripting > CxHmiFms > CxFmsNodeChooserCtrl Object > CxFmsNodeChooserCtrl Events

CxFmsNodeChooserCtrl Events

The CxFmsNodeChooserCtrl object contains the following events.

Initialize

The control is initialized.

Syntax

CxFmsNodeChooserCtrlObject_EventInitialize()

Example

The following example displays a message box when the control is initialized.

  

Sub FmsNodeChooser_EventInitialize()

Dim This : Set This = FmsNodeChooser

MsgBox "Control initialized"

End Sub

Back to top

PumpData

(Obsolete)

Back to top

Updated

The action button at the bottom of the control has been pressed.

Syntax

CxFmsNodeChooserCtrlObject_EventUpdated()

Example

The following example displays a message box when the action button is clicked. This example is taken from FMS Node Chooser Ctrl.csf found in the APPS SCREXAMP folder.

  

Sub FmsNodeChooser_EventUpdated()

Dim This : Set This = FmsNodeChooser

Dim arySelected

arySelected = FmsNodeChooser.GetNodeSelection()

 

If UBound (arySelected) >= 0 Then

Dim i, strMsg

strMsg = "Selected Nodes: " & Vbcr

For i = 0 To UBound (arySelected)

strMsg = strMsg & arySelected(i) & Vbcr

Next

 

MsgBox strMsg

'add script here to do something with the selection

Else

MsgBox "You must select a Node first"

End If

End Sub

Back to top

Let us know how we can improve this topic.

CygNet at weatherford.com

© 2020 Weatherford. All rights reserved.